package com.yiyahui.project.erp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

/**
 * 渠道对象 yiya_channel
 * 
 * @author yiyahui
 * @date 2020-05-03
 */
public class YiyaChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 渠道名称 */
    @Excel(name = "渠道名称")
    private String name;

    /** 父id */
    @Excel(name = "父id")
    private Long pid;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 0:失效，1:生效 */
    @Excel(name = "0:失效，1:生效")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pid", getPid())
            .append("remarks", getRemarks())
            .append("status", getStatus())
            .toString();
    }
}
